package com.rightsidetech.system.dtos.request.adverts;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class BannerSortReq implements Serializable {

    @ApiModelProperty(value = "id",required = true)
    @NotEmpty(message = "id不允许为空")
    private List<@NotNull(message = "id不可为空")@Min(value = 0,message = "id不可为负数")Long> id;

    @ApiModelProperty("排序字段")
    @NotEmpty(message = "排序字段不允许为空")
    private List<@NotNull(message = "排序字段不可为空")@Min(value = 0,message = "排序字段不可为负数")Long> sort;
}
